<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">

<ui:composition template="_patrimonio.xhtml">
	<ui:define name="corpo">

		<div id="conteudo">

			<h:form id="form">

				<h2>
					<h:outputText value="CADASTRAR UNIDADE FEDERAÇÃO" />
				</h2>
				<hr />

				<p:messages id="msg" />
				
				<p:fieldset legend="Dados do Municipio" toggleable="true" style="background-image: url(resources/img/white89.jpg)">
				
				<h:outputLabel value="Nome: " for="nome" />
				<p:inputText id="nome" value="#{ufBean.uf.nome}">
					<f:ajax event="change" />
				</p:inputText><br /><br />
								
				<h:outputLabel value="Sigla: " for="sigla" />
				<p:inputText id="sigla" value="#{ufBean.uf.sigla}">
					<f:ajax event="change" />
				</p:inputText><br /><br />
				
				<p:commandButton id="grava" value="GRAVAR" action="#{ufBean.grava}" ajax="false" icon="ui-icon-disk">
					<f:ajax render="@all" />
				</p:commandButton>	
				&nbsp;

				<p:button id="reset" type="reset" value="LIMPAR" />&nbsp;
								
				</p:fieldset>
			
			</h:form>
		</div>


	</ui:define>
</ui:composition>
</html>